<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>算数运算符</title>
</head>
<body>
    <button onclick="funAdd()">加法</button>
    <button onclick="funSub()">减法</button>
    <button onclick="funMul()">乘法</button>
    <button onclick="funDiv()">除法</button>
    <button onclick="funPower()">幂运算</button>
    <button onclick="funRem()">取余</button>
    <button onclick="funAutoAdd()">自增</button>
    <button onclick="funAutoSub()">自减</button>
</body>
    <script>
        function funAdd(){
            var a = 5 + 8
            console.log(a)
        }
          function funSub(){
            var a = 5 - 8
            console.log(a)
        }
          function funMul(){
            var a = 5 * 8
            console.log(a)
        }
          function funDiv(){
            var a = 5 / 8
            console.log(a)
        }
          function funPower(){
            var a = 5**2
            console.log(a)
        }
          function funRem(){
            var a = 8 % 5
            console.log(a)
        }
        function funAutoAdd(){
            var a = 5
            // a+=2
            a++
            console.log(a)
        }
          function funAutoSub(){
            var a =5
            // a-=2
            a--
            console.log(a)
        }
    </script>
</html>